#pragma once

#include "CUtilities.h"

#define FieldLength 2500.0f
#define FieldWidth 750.0f
#define FieldHeight .5f

class CField
{
	D3DXVECTOR3 m_vecPosition;
	
	DWORD mNumVertices;
	DWORD mNumFaces;

	ID3D10Device* md3dDevice;
	ID3D10Buffer* mVB;
	ID3D10Buffer* mIB;
	
	D3DXCOLOR color;

public:
	CField(void);
	virtual ~CField(void);

	void init(ID3D10Device* device, float scale, D3DXCOLOR COLOR = WHITE);
	void draw();

	D3DXVECTOR3 GetTargetPosition();

	void SetPosition(D3DXVECTOR3 &pos);
};
